FROM daocloud.io/library/ubuntu:18.04
RUN  sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN apt-get clean
RUN apt-get update -y && apt-get install -y libgdiplus wget && apt-get clean && ln -s /usr/lib/libgdiplus.so /usr/lib/gdiplus.dll

RUN wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb &&  dpkg -i packages-microsoft-prod.deb

RUN apt-get install  -y  language-pack-zh-hans unzip vim && apt-get install  -y  fonts-droid-fallback ttf-wqy-zenhei ttf-wqy-microhei fonts-arphic-ukai fonts-arphic-uming

RUN echo "LC_ALL=zh_CN.GB18030">> /etc/environment
RUN echo "LANGUAGE=zh_CN:zh:en_US:en">> /etc/environment

RUN echo "zh_CN.GBK GBK"  >> /var/lib/locales/supported.d/zh-hans 
RUN echo "zh_CN.GB2312 GB2312"   >> /var/lib/locales/supported.d/zh-hans 
RUN echo "zh_CN.GB18030 GB18030"   >> /var/lib/locales/supported.d/zh-hans 
RUN locale-gen 

RUN apt-get update -y && apt-get install -y apt-transport-https &&  apt-get install -y dotnet-sdk-3.1